<?php if (!defined('APP')) die('error'); ?>
<!doctype html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>管理员页面</title>
</head>
<style>
    table{border-collapse: collapse;}
</style>
<body>
<form action="./admin.php" method="GET">
<table width="350" border="1">
    <tr>
        <th>ID</th>
        <th>账号</th>
        <th>密码</th>
    </tr>
<?php
    if (!empty($administrator)) { ?>
    <?php foreach ($administrator as $row){?>
    <tr>
        <td><input type="text" style="border: 0" value="<?php echo $row['idadministrator'];?>"></td>
        <td><input type="text" style="border: 0" value="<?php echo $row['administrator_account'];?>"></td>
        <td><input type="text" style="border: 0" value="<?php echo $row['administrator_password'];?>"></td>
    </tr>
    <?php } ?>
    <?php } ?>
    </table>
</form>
</body>
</html>
